<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html lang="en" xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
  <head>
    <meta name="copyright" content=
    "Copyright (c) IBM Corporation and others 2006, 2011. This page is made available under license. For full details see the LEGAL in the documentation book that contains this page." />
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <meta http-equiv="Content-Style-Type" content="text/css" />
    <link rel="stylesheet" href="../book.css" charset="ISO-8859-1" type="text/css" />
    <script language="JavaScript" src="PLUGINS_ROOT/org.eclipse.help/livehelp.js" type=
    "text/javascript">
</script>
    <title>
      Sorting in Java Views
    </title>

  </head>
  <body>
    <h1>
      Sorting in Java Views
    </h1>
    <p>
      The <strong>Members</strong> and <strong>Outline</strong> views can present members sorted or
      in the order of declaration in the compilation unit.
    </p>

    <p>
      To sort members:
    </p>
    <ul>
      <li>Toggle on the <span class="control">Sort</span> toolbar button in the view toolbar.
      </li>
      <li>The sorting order can be configured on the on the <a class="command-link" href=
      'javascript:executeCommand("org.eclipse.ui.window.preferences(preferencePageId=org.eclipse.jdt.ui.preferences.MembersOrderPreferencePage)")'>
        <img src="PLUGINS_ROOT/org.eclipse.help/command_link.svg" alt=
        "Opens the Members Sort Order preference page" /> <span class="control">Java &gt;

        Appearance &gt; Members Sort Order</span></a> preference page.
      </li>
      <li>After the above sorting is performed, members in each group are sorted alphabetically.
      </li>
    </ul>To present members in the order of declaration in the compilation unit.
    <ul>
      <li>Toggle off the <span class="control">Sort</span> toolbar button in the view toolbar.
      </li>

    </ul><h3 class="related">Related References</h3>
    <a href="../reference/ref-actions-toolbar.htm">Java toolbar actions</a>
  </body>
</html>
